<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html; UTF-8" pageEncoding="UTF-8"  language="java" isELIgnored="false" %>
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>用户界面</title>
</head>
<body align="center">
<h2>员工界面</h2>
<div>
    <%--<h1>--%>
        <%--Welcome ${sessionScope.user.username}!--%>
    <%--</h1>--%>
    <table align="center" border="1px">
        <tr class="table_header">
            <td>id</td>
            <td>foodName</td>
            <td>foodExplain</td>
            <td>foodImg</td>
            <td>foodPrice</td>
            <td>businessId</td>
            <td>remarks</td>
        </tr>
        <c:forEach items="${requestScope.foods}" var="food">
            <tr class="row1">
                <td>
                        ${food.foodId}
                </td>
                <td>
                        ${food.foodName}
                </td>
                <td>
                        ${food.foodExplain}
                </td>
                <td>
                    <img src="${food.foodImg}" />
                </td>

                <td>
                        ${food.foodPrice}
                </td>
                <td>
                        ${food.businessId}
                </td>
                <td>
                        ${food.remarks}
                </td>
                <td>
                    <a href="${pageContext.request.contextPath}/emp/delete?id=${emp.id}">删除</a> &nbsp;
                    <a href="${pageContext.request.contextPath}/emp/findOne?id=${emp.id}">更新</a> &nbsp;
                </td>
            </tr>
        </c:forEach>
    </table>
    <br>
    <p>
        <input type="button" class="button" value="添加" onclick="location='${pageContext.request.contextPath}/addEmp.jsp'">
    </p>
</div>

</body>
</html>
